<!DOCTYPE HTML>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>新增收款</title>
    <link rel="stylesheet" type="text/css" href="../css/aui.css" />
    <link rel="stylesheet" type="text/css" href="../css/iconfont.css" />
    <link rel="stylesheet" type="text/css" href="css/comm.css" />
    <link rel="stylesheet" type="text/css" href="../script/mui/mui.picker.min.css" />
    <link rel="stylesheet" type="text/css" href="../script/mui/mui.reset.css" />
    <link rel="stylesheet" type="text/css" href="css/form.css" />
    <link rel="stylesheet" type="text/css" href="css/editStyle.css" />
    <style type="text/css">
        .aui-list .aui-list-item-label-icon {
            padding-right: 0;
        }

        .aui-list .aui-list-item-input label {
            margin-right: 10px;
        }

        .aui-btn-primary {
            background: #01B2F5;
            width: 95%;
            left: 2.5%;
            bottom: 0.5rem;
            border-radius: 5px;
        }

        .inline_placeholder::placeholder {
            text-align: right;
        }

        .imglist_box {
            overflow: hidden;
        }

        .moreproject {
            width: 93%;
            float: left;
            line-height: 1rem;
            padding-top: 4px;
            /* margin-right: 10px; */
            text-align: right;
        }
        .aui_formcontent {
            text-align:right;
        }
        .mask_bg{
            position: fixed;
            z-index: 9999;
            background: rgba(0, 0, 0, 0.3);
            top: 0;
            bottom: 0;
            left: 0;
            right: 0;
        }
        .choose_box{
            position: fixed;
            min-height: 300px;
            max-height: 400px;
            z-index: 10000;
            background: #fff;
            top: 50%;
            left: 10%;
            right: 10%;
            margin-top: -200px;
            border-radius: 10px;
            box-shadow: 0px 1px 10px 0px rgba(0, 0, 0, 0.2);
            overflow: hidden;
            }
            .choose_box .close_btn{
            position: absolute;
            top: 10px;
            right: 20px;
            z-index: 10002;
            }
            .choose_box .close_btn .iconfont{
            font-size: 1rem;
            color: #888;
            }
            .choose_room_title{
  position: relative;
  text-align: center;
  line-height: 2.5rem;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  border-bottom: solid 0.5px #f5f5f5;
}

.choose_room_content{
  margin: 28px 8px 20px 8px;
  position: absolute;
  top: 3rem;
  bottom: 20px;
  left: 10px;
  right: 10px;
  overflow: scroll;
  z-index: 10001;
  /* background: #ff0; */
}
.choose_room_item{
  /* background: #f00; */
  position:relative;
  padding-left: 15px;
  padding-right: 15px;
  margin-bottom: 0.25rem;
  text-align: center;
}
.choose_room_item label{
  line-height: 2.2rem;
  font-size: 0.8rem;
  color: #333;
}
.choose_room_item i{
  float: right;
  line-height: 2.2rem;
  color: #fff;
  font-size: 1rem;
}
.aui-radio, .aui-checkbox{
  width: 0.8rem;
  height: 0.8rem;
  float: right;
  top:8px;
}
.selected{
  background-color: #f8f8f8;
  border-radius: 5px;
}
.selected i{
  color: #289fff;
}
    </style>
</head>

<body>
    <div id="app" v-cloak>
        <div class="mask_bg" v-on:click="doCloseRoom()" v-if="IsRoomOpen"></div>
        <div class="choose_box" v-if="IsRoomOpen">
            <div class="choose_room_title">
                <div class="choose_room_title">选择服务卡</div>
            </div>
            <div class="choose_room_content">
                <div v-on:click="doSelectcard(item)" class="choose_room_item"  v-for="item in cardList" v-bind:class="{'selected':form.ServiceID==item.ID}">
                    <label>{{item.ServiceCardName}}</label><i v-bind:class="{'selected':form.ServiceID==item.ID}" class="icon iconfont icon-xuanze"></i>
                    <!-- v-bind:class="{'selected':newform.CategoryID==item.ID}"  -->
                </div>
            </div>
        </div>
        <div class=" boxarea edit">
            <div class="">
                <div class="aui_formitem">
                    <div class="aui_formtitle">资源位置<img class="col-star" src="../image/redstar.png"></div>
                    <div class="aui_formcontent" v-on:click="do_select_project()">
                        <div class="moreproject" v-bind:class="{'textColorPlaceholder':form.ServiceFullName==''||form.ServiceFullName==undefined}">{{form.ServiceFullName==''||form.ServiceFullName==undefined?'请选择':form.ServiceFullName}}</div>
                        <!-- <textarea class="inline_placeholder choose"  cols="25" rows="3" style="padding-top: 3px; text-align: right; " placeholder="请选择" v-on:click="do_select_project()" readonly="readonly" v-model="form.ServiceFullName"></textarea> -->
                        <i class="icon iconfont icon-xiangyoujiantou"></i>
                    </div>
                </div>
                <div class="aui_formitem">
                    <div class="aui_formtitle">资源编号</div>
                    <div class="aui_formcontent">
                        <input type="text" placeholder="--" v-model="form.NameNumber" readonly unselectable="on">
                    </div>
                </div>
                <div class="aui_formitem">
                    <div class="aui_formtitle">住户名称</div>
                    <div class="aui_formcontent">
                        <input type="text" placeholder="--" v-model="form.AddCustomerName" readonly unselectable="on">
                    </div>
                </div>
                <div class="aui_formitem" style="border-bottom: none;">
                    <div class="aui_formtitle">手机号码</div>
                    <div class="aui_formcontent">
                        <input type="number" placeholder="--" v-model="form.AddCallPhone" readonly unselectable="on">
                    </div>
                </div>
            </div>
        </div>
        <div class=" boxarea edit" v-if="cardList.length>0">
            <div class="">
                <div class="aui_formitem">
                    <div class="aui_formtitle">服务卡名称</div>
                    <div class="aui_formcontent" v-on:click="do_choose_card(form.ServiceCardID)">
                        <div class="moreproject" v-bind:class="{'textColorPlaceholder':form.ServiceCardName==''||form.ServiceCardName==undefined}">{{form.ServiceCardName==''||form.ServiceCardName==undefined?'请选择':form.ServiceCardName}}</div>
                        <i class="icon iconfont icon-xiangyoujiantou"></i>
                    </div>
                </div>
                <div class="aui_formitem">
                    <div class="aui_formtitle">服务卡ID</div>
                    <div class="aui_formcontent">
                        <input type="text" placeholder="--" v-model="form.ServiceCardID" readonly unselectable="on">
                    </div>
                </div>
                <div class="aui_formitem">
                    <div class="aui_formtitle">余额</div>
                    <div class="aui_formcontent">
                        <input type="text" placeholder="--" v-model="form.ServiceCardBalance" readonly unselectable="on">
                    </div>
                </div>
                <div class="aui_formitem">
                    <div class="aui_formtitle">本次收款金额<img class="col-star" src="../image/redstar.png"></div>
                    <div class="aui_formcontent">
                        <input type="number" placeholder="请填写金额" v-model="form.Balance">
                    </div>
                </div>
                <div class="aui_formitem block" style="border-bottom: none;">
                    <div class="aui_formtitle">说明信息</div>
                    <div class="aui_formcontent" style="padding-left: 0px;">
                        <textarea placeholder="可填写说明信息 （选填）" v-model="form.Explain" style="height: 4rem;"></textarea>
                    </div>
                </div>
            </div>
        </div>
        <div class="bottom">
            <div class="aui_bottombtn" v-on:click="do_save()">确认收款</div>
        </div>
    </div>
</body>
<script type="text/javascript" src="../script/api.js"></script>
<script type="text/javascript" src="../script/aui-toast.js"></script>
<script type="text/javascript" src="../script/aui-actionsheet.js"></script>
<script type="text/javascript" src="../script/config.js"></script>
<script type="text/javascript" src="../script/mui/mui.min.js"></script>
<script type="text/javascript" src="../script/mui/mui.picker.min.js"></script>
<script type="text/javascript" src="../script/mui/mui.poppicker.js"></script>
<script type="text/javascript" src="../script/common.js"></script>
<script type="text/javascript " src="../script/vue.js "></script>
<script type="text/javascript " src="js/service_write_add.js"></script>

</html>
